import {getList} from "@/api/system/addedServices";

export default {
  hasPage: true,
  hasCheck: true,
  // hasIndex: true,
  request: (params) => {
    return getList(params)
  },
  dataParse: (res) => {
    const resData = res.data.data || {}
    const data = {
      list: resData.rows,
      total: resData.total
    }
    return data
  },
  columns: [
    {
      prop: 'linkName',
      label: '联系人',
    },
    {
      prop: 'linkMobile',
      label: '联系电话',
    },
    {
      prop: 'linkEmail',
      label: '联系人邮箱',
    },
    {
      prop: 'warehouseName',
      label: '分管仓',
      isSlot: true,
    },
    {
      prop: 'manageName',
      label: '负责人',
    },
    {
      prop: 'manageMobile',
      label: '负责人联系电话',
    },
    {
      prop: 'manageEmail',
      label: '负责人邮箱',
    },
    {
      prop: 'type',
      label: '增值服务',
      isSlot: true,
    },
    {
      prop: 'operate',
      label: '操作',
      isSlot: true,
    }
  ]
}